﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin.master" CodeFile="PostJobs.aspx.cs"
    Inherits="PostJobs" %>

<asp:Content ContentPlaceHolderID="cphMainBody" runat="server">
    <div id="dvPostResume" runat="server" visible="false">
        <table width="100%">
            <tr>
                <td valign="bottom" class="leftheading" colspan="2" align="left">
                    <img src="images/headingbullet.gif" width="14" height="14">
                    POST JOBS
                </td>
            </tr>
            <tr>
                <td class="leftsectionunderline" colspan="2">
                    <img src="images/spacer.gif" width="1" height="1">
                </td>
            </tr>
            <tr>
                <td class="tdstyle" colspan="2" height="6">
                </td>
            </tr>
            <tr>
                <td class="tdstyle" style="width: 25%;" align="right">
                    Functional Area :
                </td>
                <td class="tdstyle" style="width: 75%;">
                    <asp:DropDownList CssClass="ddl" ID="ddlFunctionalArea" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator runat="server" ID="reqFunctionalArea" ControlToValidate="ddlFunctionalArea"
                        ValidationGroup="PostResume" InitialValue="0" ErrorMessage="Please select functional area!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Job Description :
                </td>
                <td class="tdstyle">
                    <asp:TextBox class="txt" ID="txtJobDescription" runat="server">
                    </asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="reqJobDescription" ControlToValidate="txtJobDescription"
                        ValidationGroup="PostResume" ErrorMessage="Please enter job description!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Job Title :
                </td>
                <td class="tdstyle">
                    <asp:TextBox class="txt" ID="txtJobTitle" runat="server">
                    </asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="reqJobTitle" ControlToValidate="txtJobTitle"
                        ValidationGroup="PostResume" ErrorMessage="Please enter job title!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Job Location :
                </td>
                <td class="tdstyle">
                    <asp:DropDownList CssClass="ddl" ID="ddlJobLocation" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator runat="server" ID="reqJobLocation" ControlToValidate="ddlJobLocation"
                        ValidationGroup="PostResume" InitialValue="0" ErrorMessage="Please select job location!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Key Skills :
                </td>
                <td class="tdstyle">
                    <asp:TextBox class="txt" ID="txtKeySkills" runat="server">
                    </asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="reqSkills" ControlToValidate="txtKeySkills"
                        ValidationGroup="PostResume" ErrorMessage="Please enter skills required!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Min Experience Required(Months) :
                </td>
                <td class="tdstyle">
                    <asp:DropDownList CssClass="ddl" ID="ddlMinExpRequired" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator runat="server" ID="reqExperienceRequired" ControlToValidate="ddlMinExpRequired"
                        ValidationGroup="PostResume" ErrorMessage="Please select min experience required!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Max Experience Required(Months) :
                </td>
                <td class="tdstyle">
                    <asp:DropDownList CssClass="ddl" ID="ddlMaxExpRequired" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator runat="server" ID="reqMaxExperienceRequired" ControlToValidate="ddlMaxExpRequired"
                        ValidationGroup="PostResume" ErrorMessage="Please select max experience required!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Qualification Required :
                </td>
                <td class="tdstyle">
                    <asp:TextBox class="txt" ID="txtQualificationRequired" runat="server">
                    </asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="reqQualificationRequired" ControlToValidate="txtQualificationRequired"
                        ValidationGroup="PostResume" ErrorMessage="Please enter qualification required!" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle" align="right">
                    Salary Offered :
                </td>
                <td class="tdstyle">
                    <asp:TextBox class="txt" ID="txtSalaryOffered" runat="server">
                    </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdstyle">
                </td>
                <td class="tdstyle">
                    <asp:Button class="CSSButton" ID="btnPostJob" runat="server" Text="Post Job" OnClick="btnPostJob_Click"
                        ValidationGroup="PostResume" />
                </td>
            </tr>
            <tr>
                <td class="tdstyle">
                    &nbsp;
                </td>
                <td class="tdstyle">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="tdstyle" colspan="2">
                    <asp:Repeater ID="rptrJobPosted" runat="server" OnItemDataBound="rptrJobPosted_ItemDataBound">
                        <ItemTemplate>
                            <div style='margin: 5px 5px 5px 5px; background-color: #F0F0F0;'>
                                <table width="100%">
                                    <tr>
                                        <td class="tdstyle" style="width: 25%;">
                                            Job Title :
                                        </td>
                                        <td class="tdstyle" style="width: 75%;">
                                            <strong>
                                                <%# Eval("JOB_TITLE")%>&nbsp;&nbsp;(&nbsp;<%# Eval("MIN_EXPERIENCE_REQUIRED")%>&nbsp;-&nbsp;<%# Eval("MAX_EXPERIENCE_REQUIRED")%>&nbsp;Months&nbsp;)</strong>
                                            <asp:HiddenField ID="hfID" Value='<%# Eval("ID")%>' runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Skills Required :
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("SKILLS_REQUIRED")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Job Location ;
                                        </td>
                                        <td class="tdstyle">
                                            <asp:Label ID="lblJobLocation" runat="server" Text='<%# Eval("JOB_LOCATION")%>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Job Description :
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("JOB_DESCRIPTION")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Qualification Required :
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("QUALIFICATION_REQUIRED")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Salary Offered ;
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("SALARY_OFFERED")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Functional Area :
                                        </td>
                                        <td class="tdstyle">
                                            <asp:Label ID="lblFunctionalArea" runat="server" Text='<%# Eval("FUNCTIONAL_AREA")%>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Job Posted On :
                                        </td>
                                        <td class="tdstyle">
                                            <asp:Label ID="lblCreatedOn" runat="server" Text='<%# Eval("CREATED_ON")%>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <div style='margin: 5px 5px 5px 5px; background-color: #FFFFFF;'>
                                <table width="100%">
                                    <tr>
                                        <td class="tdstyle" style="width: 25%;">
                                            Job Title :
                                        </td>
                                        <td class="tdstyle" style="width: 75%;">
                                            <strong>
                                                <%# Eval("JOB_TITLE")%>&nbsp;&nbsp;(&nbsp;<%# Eval("MIN_EXPERIENCE_REQUIRED")%>&nbsp;-&nbsp;<%# Eval("MAX_EXPERIENCE_REQUIRED")%>&nbsp;Months&nbsp;)</strong>
                                            <asp:HiddenField ID="hfID" Value='<%# Eval("ID")%>' runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Skills Required :
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("SKILLS_REQUIRED")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Job Location ;
                                        </td>
                                        <td class="tdstyle">
                                            <asp:Label ID="lblJobLocation" runat="server" Text='<%# Eval("JOB_LOCATION")%>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Job Description :
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("JOB_DESCRIPTION")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Qualification Required :
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("QUALIFICATION_REQUIRED")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Salary Offered ;
                                        </td>
                                        <td class="tdstyle">
                                            <%# Eval("SALARY_OFFERED")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Functional Area :
                                        </td>
                                        <td class="tdstyle">
                                            <asp:Label ID="lblFunctionalArea" runat="server" Text='<%# Eval("FUNCTIONAL_AREA")%>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdstyle">
                                            Job Posted On :
                                        </td>
                                        <td class="tdstyle">
                                            <asp:Label ID="lblCreatedOn" runat="server" Text='<%# Eval("CREATED_ON")%>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                    <asp:Panel ID="pnlProjectDetails" runat="server" ScrollBars="Auto" Width="100%">
                        <asp:GridView ID="grdJobsPosted" runat="server" AutoGenerateColumns="false" CssClass="griddiv" CellPadding="3" PageSize="20"
                            ForeColor="Black" GridLines="Vertical" Width="100%" OnRowDataBound="grdJobsPosted_RowDataBound">
                            <Columns>
                                <asp:TemplateField ItemStyle-CssClass="griditem" HeaderText="Job Title">
                                    <ItemTemplate>
                                        <asp:Label CssClass="lbl" ID="lblJobTitle" runat="server" Text='<%# Eval("JOB_TITLE") %>'></asp:Label>
                                        <asp:HiddenField ID="hfID" Value='<%# Eval("ID") %>' runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="SKILLS_REQUIRED" HeaderText="Skills Required" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="MIN_EXPERIENCE_REQUIRED" HeaderText="Experience Required" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="MAX_EXPERIENCE_REQUIRED" HeaderText="Experience Required" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="JOB_LOCATION" HeaderText="Job Location" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="JOB_DESCRIPTION" HeaderText="Job Description" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="QUALIFICATION_REQUIRED" HeaderText="Qualification Required" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="SALARY_OFFERED" HeaderText="Salary Offered" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="FUNCTIONAL_AREA" HeaderText="Functional Area" />
                                <asp:BoundField ItemStyle-CssClass="griditem" DataField="CREATED_ON" HeaderText="Job Posted On" DataFormatString="{0:dd/MMM/yyyy}" />
                            </Columns>
                            <AlternatingRowStyle BackColor="#CCCCCC" />
                            <FooterStyle BackColor="#CCCCCC" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
